package servidor;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="PROFESSOR_DISCIPLINA", schema="servidor")
public class DisciplinaProfessor implements Serializable{
	private static final long serialVersionUID = 1L;
	@Id
	@Column(name="COD_DISCIPLINA", nullable = false)
	private String codDisciplina;
	@Column(name="COD_PROFESSOR", nullable = false)
	private long raProfessor;
	
	public DisciplinaProfessor() {
	}
	public DisciplinaProfessor(long raProfessor, String codDisciplina) {
		setCodDisciplina(codDisciplina);
		setRaProfessor(raProfessor);
	}	
	public String getCodDisciplina() {
		return codDisciplina;
	}
	public void setCodDisciplina(String codDisciplina) {
		this.codDisciplina = codDisciplina;
	}
	public long getRaProfessor() {
		return raProfessor;
	}
	public void setRaProfessor(long raProfessor) {
		this.raProfessor = raProfessor;
	}
	public String toString(){
		return "||"+getCodDisciplina()+"|"+getRaProfessor()+"||";
	}
	
}
